/**
 * create by young (young2f@outlook.com) on 2020/11/13
 */
'use strict';
import request from '../utils/request';
export async function getIIOTConfig(body) {
  return request('/api/settings/iiot/config/get', {
    method: 'POST',
    body,
  });
}
export async function setIIOTConfig(body) {
  return request('/api/settings/iiot/config/set', {
    method: 'POST',
    body,
  });
}
export async function restartIIOT(body) {
  return request('/api/settings/iiot/restart', {
    method: 'POST',
    body,
  });
}
export async function findSettings(body) {
  return request('/api/settings/find', {
    method: 'POST',
    body,
  });
}
export async function updateSettings(body) {
  return request('/api/settings/update', {
    method: 'POST',
    body,
  });
}
export async function findUserSettings(body) {
  return request('/api/settings/user/find', {
    method: 'POST',
    body,
  });
}
export async function updateUserSettings(body) {
  return request('/api/settings/user/update', {
    method: 'POST',
    body,
  });
}
